package cn.nuist.service;

import cn.nuist.entity.User;

import java.util.ArrayList;

public interface UserService {

    User login(String username,String password);

    ArrayList<User> getAllUser();

    User getUserByName(String username);

    void addUser(String name,String username,String password,String rpassword,String role);

    User findUserById(Integer id);

    void update(User user);

    void delete(Integer id);
}


